package com.songmao.pricecloudapitest.socket.entity.tcp;

/**
 * @author Remy
 * @description :
 * @date 2020-07-07 18:09
 */

import com.alibaba.fastjson.annotation.JSONField;


import java.util.List;


public class QuoteSymbolEntity {

    @JSONField(name = "symbol")
    private String symbol;

    @JSONField(name = "time")
    private long time;

    @JSONField(name = "depth")
    private Integer depth;

    @JSONField(name = "tick")
    private List<QuoteSymbolQuantityEntity> tick;

    public QuoteSymbolEntity() {
    }

    public QuoteSymbolEntity(String symbol, long time, Integer depth, List<QuoteSymbolQuantityEntity> tick) {
        this.symbol = symbol;
        this.time = time;
        this.depth = depth;
        this.tick = tick;
    }

    @Override
    public String toString() {
        return "QuoteSymbolEntity{" +
                "symbol='" + symbol + '\'' +
                ", time=" + time +
                ", depth=" + depth +
                ", tick=" + tick +
                '}';
    }

    public String getSymbol() {
        return symbol;
    }

    public void setSymbol(String symbol) {
        this.symbol = symbol;
    }

    public long getTime() {
        return time;
    }

    public void setTime(long time) {
        this.time = time;
    }

    public Integer getDepth() {
        return depth;
    }

    public void setDepth(Integer depth) {
        this.depth = depth;
    }

    public List<QuoteSymbolQuantityEntity> getTick() {
        return tick;
    }

    public void setTick(List<QuoteSymbolQuantityEntity> tick) {
        this.tick = tick;
    }
}